/**
 *
 * @Author:   tiannanyihao
 * @Date:     2018-09-14 14:30
 * @Profile:  index
 * @Project:  MeiTuan

 * @Description: 工具类组件集合
 *
 */

import React, {Component} from 'react';
import {
	Platform,
	StyleSheet,
	View,
	Text,
	TouchableOpacity,
	Button,
	Image
} from 'react-native';


export default class TestPage extends Component {

	static navigationOptions = ({navigation, screenProps}) => ({
			title: navigation.state.params.name,
			headerTintColor: '#189',
		}
	)

	render() {
		return (

			<View style={styles.baseView}>
				<TouchableOpacity onPress={this.touchInside}>
					<Text>{this.props.navigation.state.params.name}</Text>
				</TouchableOpacity>
			</View>
		)
	}

	touchInside = () => {
		this.props.navigation.goBack()
	}

}

const styles = StyleSheet.create({

	baseView: {
		flex: 1,
		flexDirection: 'row',
		justifyContent: 'center',
		alignItems: 'center'
	},


})














